package com.bytedance.social.mapper;


import com.bytedance.social.pojo.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {

    public Message selectMessageByFromAndTo(@Param("currentUserId") Long currentUserId, @Param("toUserId") Long toUserId);

    List<Message> selectMessageById(@Param("currentUserId") Long currentUserId, @Param("toUserId") Long toUserId, @Param("createTime") Long createTime);

    public void insertUserMessage(Message message);
}
